package com.jlkf.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jlkf.service.TaskService;
import com.platform.server.response.response.pojo.ReturnData;

@Controller
@RequestMapping("/task")
public class TaskController {
	
	@Autowired
	private TaskService taskService;
	
	 /**
     * pc端作业提交列表
     */
	@ResponseBody
	@RequestMapping(value = "/selectTaskList",method = RequestMethod.POST)
	public Object selectTaskList(Integer courseid){
		return taskService.selectTaskList(courseid);
	}
	
	/**
	 * 作业提交
	 */
    @RequestMapping(value="submitWork")
    @ResponseBody
    public ReturnData submitWork(@RequestBody String json){
    	return taskService.submitWork(json);
    }
}
